package com.wanmait.schedule.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 通知查看记录表
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Accessors(chain = true)
@TableName("notice_record")
public class NoticeRecord {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 通知id
     */
    private Integer noticeId;

    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 教师id
     */
    private Integer teacherId;

    /**
     * 是否阅读
     */
    private Boolean check;

    /**
     * 阅读时间
     */
    private LocalDateTime checkTime;

    /**
     * 删除
     */
    @TableLogic
    private Boolean enable;

    @TableField(exist = false)
    private Notice notice;

    @TableField(exist = false)
    private Student student;

    @TableField(exist = false)
    private Teacher teacher;
}
